<link rel="stylesheet" media="all" type="text/css" href="data/cache/style_{STYLEID}_editor.css" />
<script type="text/javascript" src="{$_G['setting']['jspath']}editor.js?{VERHASH}"></script>
<script type="text/javascript" src="{$_G['setting']['jspath']}bbcode.js?{VERHASH}"></script>
<script type="text/javascript">
	var editorid = '$editorid';
	var textobj = $(editorid + '_textarea');
	var wysiwyg = (BROWSER.ie || BROWSER.firefox || (BROWSER.opera >= 9)) && parseInt('$editor[editormode]') == 1 ? 1 : 0;
	var allowswitcheditor = parseInt('$editor[allowswitcheditor]');
	var allowhtml = parseInt('$editor[allowhtml]');
	var allowsmilies = parseInt('$editor[allowsmilies]');
	var allowbbcode = parseInt('$editor[allowbbcode]');
	var allowimgcode = parseInt('$editor[allowimgcode]');

	var editorcss = 'data/cache/style_{STYLEID}_wysiwyg.css?{VERHASH}';
	var TABLEBG = '{WRAPBG}';
	var fontoptions = new Array({lang e_fontoptions});
	var custombbcodes = new Array();
	{if $editor['allowcustombbcode'] && $_G['cache']['bbcodes_display']}
		{loop $_G['cache']['bbcodes_display'] $tag $bbcode}
			custombbcodes["$tag"] = {'prompt' : '$bbcode[prompt]'};
		{/loop}
	{/if}
</script>
